package com.example.hotelmanager;

import com.example.hotelmanager.common.CyptoUtils;
import com.example.hotelmanager.common.FileUtils;
import com.example.hotelmanager.common.Logger;

import android.test.AndroidTestCase;

/**
 * 白盒测试类
 * @author zhang_jin1
 */
public class JunitTestCase extends AndroidTestCase {

	public void testEncode(){
		Logger.d(CyptoUtils.encode("zhangjin123_456", "today is a bad day!!!"));
	}
	
	public void testDecode(){
		Logger.d(CyptoUtils.decode("zhangjin123_456", "CC65A07246D049635163FCE8E57F23FB0A3273FB03369C27"));
	}
	
	public void testGetFreeDiskSpace(){
		long freeSize = FileUtils.getFreeDiskSpace();
		String formatSize = FileUtils.formatFileSize(freeSize * 1024);
		Logger.d("freeSize is "+freeSize+" , formatSize is "+formatSize);
	}
	
}
